<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Upload</title>
</head>
<body>
<h1>Upload new File</h1>
<p>上传的文件必须为zip，zip内深度必须为0</p>
<p>标准输入文件后缀为 .in 标准输出文件后缀为 .out </p>
<p>Special Judge程序必须为 spj.* , 推荐上传源代码,支持 spj.c spj.cpp spj.py（为Python3）</p>
<p>目录下如果有spj则启用Special Judge，程序输出将作为标准输入输入到spj,spj标准输出0 为AC，其他为WA</p>
<p>Special Judge 标准读入文件为 “用户输出” 第一个参数argv[1]为标注数据*.in的绝对路径</p>
<p>以spj.py A+B 为例</p>
<pre>
    import sys

    def main():
        user_input=input()
        with open(sys.argv[1]) as f:
            for line in f.readlines():
                a,b = [int(x) for x in line.split(' ')]
                return a+b==user_input

    try:
        print(main())
    except:
        print(1)
</pre>
<form action="" method=post enctype=multipart/form-data>
    <p><input type="file" name="file" required="required">
        <input type=submit value=Upload>
</form>
</body>
</html>